package com.bugstack.infrastructure.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import com.bugstack.infrastructure.dao.po.RaffleActivityAccount;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: czb
 * @Description: 活动账户
 * @DateTime: 2025/3/20 14:21
 **/
@Mapper
public interface IRaffleActivityAccountDao {
    int updateAccountQuota(RaffleActivityAccount raffleActivityAccount);

    void insert(RaffleActivityAccount raffleActivityAccount);

    @DBRouter
    RaffleActivityAccount queryRaffleActivityAccountByUserId(RaffleActivityAccount raffleActivityAccountReq);

    int updateActivityAccountSubtractionQuota(RaffleActivityAccount raffleActivityAccount);

    void updateActivityAccountMonthSurplusImageQuota(RaffleActivityAccount build);

    void updateActivityAccountDaySurplusImageQuota(RaffleActivityAccount build);

    void batchInsert(List<RaffleActivityAccount> batch);
}
